var o = function () {
};
o.prototype = {
    ctor: function () {
    },
    getActivityConfByKindId: function (e) {
        if (!e) return console.error("getActivityConfByKindId kindId:", e), null;
        var t = Global.configCdn.getActivityAndTaskConf() || Global.configCdn.getDefaultConfig("activityAndTask");
        if (!t) return console.error("getActivityConfByKindId conf:", t), null;
        for (var n = t.activities, o = void 0, i = 0; i < n.length; i++) if (e == n[i].kindId) {
            o = n[i];
            break;
        }
        return o;
    },
    getActivitiesConfArrByIndex: function (e) {
        if (e <= 0) return console.error("getActivitiesConfArrByIndex index:", e), null;
        var t = Global.configCdn.getActivityAndTaskConf() || Global.configCdn.getDefaultConfig("activityAndTask");
        if (!t) return console.error("getActivitiesConfArrByIndex index:", e), null;
        for (var n = t.activities, o = Global.config.Activities["NO" + e], i = [], a = 0; a < n.length; a++) for (var r = 0; r < o.length; r++) {
            var s = o[r];
            if (s == n[a].kindId) {
                var l = this.getActivityConfByKindId(s);
                i.push(l);
            }
        }
        return i;
    },
    getActivityDurationByIndex: function (e) {
        if (e <= 0) return console.error("getActivityDurationByIndex index:", e), null;
        var t = Global.configCdn.getActivityConf() || Global.configCdn.getDefaultConfig("activity");
        if (!t) return console.error("getActivityDurationByIndex configArr:", t), null;
        for (var n = Global.config.Activities["NO" + e], o = {}, i = 0; i < t.length; i++) {
            for (var a = !1; 0 < n.length; i++) if (t[i].kindId == n[0]) {
                o = t[i], a = !0;
                break;
            }
            if (a) break;
        }
        return o.durationStr;
    }
},  module.exports = o